package domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class TestJava {
    private Integer id;

    private Integer studentId;
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    private Date testDate;

    private Float grade;

    public TestJava(Integer id, Integer studentId, Date testDate, Float grade) {
        this.id = id;
        this.studentId = studentId;
        this.testDate = testDate;
        this.grade = grade;
    }

    public TestJava() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getStudentId() {
        return studentId;
    }

    public void setStudentId(Integer studentId) {
        this.studentId = studentId;
    }

    public Date getTestDate() {
        return testDate;
    }

    public void setTestDate(Date testDate) {
        this.testDate = testDate;
    }

    public Float getGrade() {
        return grade;
    }

    public void setGrade(Float grade) {
        this.grade = grade;
    }

    @Override
    public String toString() {
        return "TestJava{" +
                "id=" + id +
                ", studentId=" + studentId +
                ", testDate=" + testDate +
                ", grade=" + grade +
                '}';
    }
}